package com.pzhu.gmall.nosql;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author 刘鹏 liupeng
 * @date 2019/11/8
 **/
@Data
@Document(indexName = "gmall_skuinfo_index", type = "_doc")
public class PmsSearchSkuInfo implements Serializable {

    private static final long serialVersionUID = 1927145387063662251L;
    @Field(type = FieldType.Keyword)
    private String id;

    @Field(analyzer = "ik_max_word", type = FieldType.Text)
    private String skuName;
    @Field(analyzer = "ik_smart", type = FieldType.Text)
    private String skuDesc;

    @Field(type = FieldType.Keyword)
    private String catalog3Id;
    @Field(type = FieldType.Keyword)
    private BigDecimal price;

    @Field(type = FieldType.Keyword, index = false)
    private String skuDefaultImg;


    private String hotScore;

    @Field(type = FieldType.Keyword)
    private String productId;

    @Field(type = FieldType.Object)
    private List<PmsSearchSkuAttrValue> skuAttrValueList;
}
